package com.ruicar.afs.cloud.afscase;


import com.ruicar.afs.cloud.common.core.security.annotation.EnableAfsFeignClients;
import com.ruicar.afs.cloud.common.core.security.annotation.EnableAfsResourceServer;
import com.ruicar.afs.cloud.common.job.annotation.EnableAfsCloudJob;
import com.ruicar.afs.cloud.common.swagger.annotation.EnableAfsSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author jiaqi.guo
 * @version 1.0
 * @date 2020/5/12 17:56
 * @
 */
@EnableAfsSwagger2
@SpringCloudApplication
@EnableAfsFeignClients
@EnableAfsResourceServer(details = true)
@Configuration
@EnableDiscoveryClient
@EnableScheduling
@EnableAfsCloudJob
@ComponentScan({"com.ruicar.afs.cloud.afscase", "com.ruicar.afs.cloud.invoice","com.ruicar.afs.cloud.bizcommon", "com.ruicar.afs.cloud.seats", "com.ruicar.afs.cloud.parameter.commom", "com.ruicar.afs.cloud.image", "com.ruicar.afs.cloud.workflow","com.ruicar.afs.cloud.message","com.ruicar.afs.cloud.risk","com.ruicar.afs.cloud.channel"})
public class AfsCaseApplication {
    public static void main(String[] args) {
        SpringApplication.run(AfsCaseApplication.class, args);
    }
}
